<template>
  <div class="search-item">
    <div class="item-lable">
      <slot name="title">
        <span>{{ title }}</span>
      </slot>
    </div>
    <div class="item-value">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    default: '',
  },
})
</script>

<style scoped lang="less">
.search-item {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 31%;
  height: 30px;
  margin: 0 20px 10px 0;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #e9ebf0;
  border: 8px;
  box-shadow: #e9ebf0;

  .item-lable {
    width: 130px;
    height: 30px;
    padding: 0 8px;
    line-height: 30px;
    border-right: 1px solid #e9ebf0;
  }

  .item-value {
    flex: 1;

    & :deep(.ant-input-affix-wrapper) {
      padding: 0 11px !important;
      border: none;
    }

    & :deep(.ant-select-selector),
    :deep(.ant-select),
    :deep(.ant-picker),
    :deep(.ant-input) {
      width: 100%;
      height: 30px;
      border: none;
    }
  }
}
</style>
